
  import Vue from 'vue'
  import VueRouter from 'vue-router'

  Vue.use(VueRouter)

  const routes = [
    { path: '/', name: 'freestay', component: r => { require(['../../pages/freestay/freestay'], r) }, meta: { title: '防疫自由住' }},
    { path: '/applys', name: 'applys', component: r => { require(['../../pages/freestay/apply/index'], r) }, meta: { title: '查看当前申请' }},
    { path: '/hotels', name: 'hotels', component: r => { require(['../../pages/freestay/hotel/index'], r) }, meta: { title: '查看当前房源' }},
    { path: '/admin', name: 'admin', component: r => { require(['../../pages/freestay/admin/index'], r) }, meta: { title: '管理入口' }},
    { path: '/hotel_admin', name: 'hotel_admin', component: r => { require(['../../pages/freestay/hotel/index_admin'], r) }, meta: { title: '酒店入口' }},
  ]
  
  export default new VueRouter({
    routes: routes
  })
  